{if $smarty.session.scholastex_id neq ''}
{literal}
<script>
	$(document).ready(function(){						   
		setInterval("ShowMsgCnt();", 10000);
	});
	
	function ShowMsgCnt()
	{  
		ajax.sendrequest("GET",SITEROOT + "/message_cnt.php","","","showCnt");
	}
</script>
{/literal}
{/if}
<div class="menu">
  <h1>My Account</h1>
   <ul>
    <li><a href="{$siteroot}/myaccount/editprofile">Edit Profile</a></li>
    <li><a href="{$siteroot}/myaccount/changepassword">Change Password</a></li>
    <li><a href="{$siteroot}/myaccount/my_ads">My Ads </a></li>
    <li><a href="{$siteroot}/myaccount/mymessages">My Messages <span id="showCnt">{if $getmsgcount > 0}({$getmsgcount}){/if}</span> </a></li>
   </ul>
 </div>